<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
function onLoginOut() {
  router.push('/login')
}
</script>

<template>
  <h2>首页</h2>
  <el-button @click="onLoginOut">退出登录</el-button>
</template>

<style scoped>
</style>
